package com.ax.business.hemp.dao;

import org.apache.ibatis.annotations.Mapper;

import com.ax.business.hemp.domain.HempRegisteDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HempRegisteDetailMapper {

    /**
     * 删除含麻详细信息
     * @param hempRegisteDetailId
     * @return
     */
    int deleteByPrimaryKey(@Param("hempRegisteDetailId") String[] hempRegisteDetailId);

    int insert(HempRegisteDetail record);

    int insertSelective(HempRegisteDetail record);

    HempRegisteDetail selectByPrimaryKey(Long hempRegisteDetailId);

    int updateByPrimaryKeySelective(HempRegisteDetail record);

    int updateByPrimaryKey(HempRegisteDetail record);

    /**
     * 禁用启用含麻详细信息
     * @return
     */
    Integer updateFlag(@Param("flag") Integer flag, @Param("hempRegisteDetailId") String[] hempRegisteDetailId);


    /**
     * 批量新增含麻详细信息
     * @param hempRegisteDetails
     * @return
     */
    Integer insertHempRegisteDetail(@Param("hempRegisteDetails") List<HempRegisteDetail> hempRegisteDetails);

}